DX11 GET BUFFER INTEGER

Returns the (signed) integer value stored at the specified position in the given buffer.
The three-argument version is only used by structured buffers; array- and byte address buffers will ignore the offsetInElement argument.

  Syntax
Return Integer = DX11 GET BUFFER INTEGER(buffer, offset, [offsetInElement])
  Parameters
buffer
Dword
The buffer to read the integer value from.
offset
Dword
The offset within the buffer to read the value from. If called for a structured buffer or an array buffer, this corresponds to the element id to get. For a byte address buffer it is the offset in bytes from the beginning of the buffer. Note that byte address buffers can only be read from at 4-byte aligned addresses by the GPU.
[Optional] offsetInElement
Dword
The offset within the current struct of the given element. Only relevant for structured buffers to allow writing struct entries with multiple data types. Ignored for all other buffer types.

  Returns

The (signed) integer value stored at the given offset in the buffer.

  See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories